import * as types from './mutation-types'

export default {
  [types.CHANGE_USER_INFO] (state, userInfo) {
    state.user = userInfo;
  },
  [types.CHANGE_COURSE_LIST] (state, coursesInfo) {
    state.coursesInfo = [].concat(coursesInfo);
  },
  [types.CHANGE_ARTICLE_LIST] (state, articleList) {
    state.articleList = [].concat(articleList);
  }
}

